package com.hongdee.crm.task.dao;

import com.hongdee.base.basedao.IBaseDao;
import com.hongdee.crm.car.entity.TCrmCar;
import com.hongdee.crm.exsurance.entity.TCrmCarExsurance;

import java.util.List;
import java.util.Map;

/**
 * 名  称: ITCrmCarExsuranceTaskDao
 * 类  型: interface
 * 描  述: 车辆延保信息dao
 * 路  径: com.hongdee.crm.task.dao
 * 作  者: wangshuai
 * 日  期:2017/2/28 10:23
 */
public interface ITCrmCarWarrantyTaskDao extends IBaseDao {

    /**
     * 根据条件获得车辆延保信息
     * @param start
     * @param limit
     * @return
     */
    public List<Map<String,Object>> findCarExsuranceLists(String sql,int start,int limit) throws Exception;

    /**
     * 批量更新车辆延保信息
     * @param list
     */
    public void updBatchCarExsucrance(List<TCrmCarExsurance> list);

    /**
     * 根据条件获得车辆信息
     * @param start
     * @param limit
     * @return
     * @throws Exception
     */
    public List findCarList(int start, int limit)throws Exception;

    /**
     * 批量更新车辆质保信息
     * @param lists
     * @throws Exception
     */
    public void updBatchCarWarranty(List<TCrmCar> lists)throws Exception;

    public List findCarByMileStatusIsNull(int start, int limit) throws Exception;
    public List<Map<String,Object>> findCarByMileStatusIsNullToJdbc(int start, int limit)throws Exception;

    public List findCarByMileStatus(int start,int limit) throws Exception;
}
